package cn.tedu.mybatis.mapper;

import cn.tedu.mybatis.pojo.Comment;
import cn.tedu.mybatis.pojo.CommentVO1;
import cn.tedu.mybatis.pojo.CommentVO2;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CommentMapper {

    int insertComment(Comment comment);

    int deleteCommentById(Integer id);

    int updateCommentById(Comment comment);

    CommentVO1 selectCommentById(Integer id);

    List<CommentVO2> selectCommentByUserId(Integer id);
}
